﻿using Synergy.特种报表;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Synergy
{
    public partial class FormCxbb : Form
    {
        public FormCxbb()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (pub.是否有权限("007001"))
            {
                Form fm = new FormCxgz();
                fm.Show();
            }
            else
            {
                MessageBox.Show("您未得到该授权", "提示", MessageBoxButtons.OK);
            }
        }

        private void button3_Click(object sender, EventArgs e)
        {
            if (pub.是否有权限("007002"))
            {
                Form fm = new FormRkqk();
                fm.Show();
            }
            else
            {
                MessageBox.Show("您未得到该授权", "提示", MessageBoxButtons.OK);
            }
        }

        private void button2_Click(object sender, EventArgs e)
        {
            if (pub.是否有权限("007003"))
            {
                Form fm = new FormBglz();
                fm.Show();
            }
            else
            {
                MessageBox.Show("您未得到该授权", "提示", MessageBoxButtons.OK);
            }
        }

        private void button4_Click(object sender, EventArgs e)
        {
            if (pub.是否有权限("007004"))
            {
                //Form fm = new FormBglzry();
                Form fm = new Form人员报工数();
                fm.Show();
            }
            else
            {
                MessageBox.Show("您未得到该授权", "提示", MessageBoxButtons.OK);
            }
        }

        private void button5_Click(object sender, EventArgs e)
        {
            //if (pub.是否有权限("007005"))  该权限编号还未在数据库中添加
            //{
                Form fm = new Formcxscrkqk();
                fm.Show();
            //}
            //else
            //{
            //    MessageBox.Show("您未得到该授权", "提示", MessageBoxButtons.OK);
            //}

        }

        private void button7_Click(object sender, EventArgs e)
        {
            if (pub.是否有权限("007003"))
            {
                //Form fm = new FormBglzV2();
                Form订单报工数 fm = new Form订单报工数();
                fm.Show();
            }
            else
            {
                MessageBox.Show("您未得到该授权", "提示", MessageBoxButtons.OK);
            }
        }

        private void button报工报表_Click(object sender, EventArgs e)
        {
            if (pub.是否有权限("007003"))
            {
                Form fm = new Form报工记录();
                fm.Show();
            }
            else
            {
                MessageBox.Show("您未得到该授权", "提示", MessageBoxButtons.OK);
            }
        }

        private void button不良原因明细表_Click(object sender, EventArgs e)
        {
            Form fm = new Form不良原因汇总表();
            fm.Show();
        }

        private void button不良原因汇总表_Click(object sender, EventArgs e)
        {
            Form fm = new Form不良原因明细表();
            fm.Show();
        }

        private void button8_Click(object sender, EventArgs e)
        {
            Form fm = new Form工序时间段报表();
            fm.Show();
        }
    }
}
